package entity;
/*
用来初始化用户数据
 */
public class User {
    private Integer id;
    private String userName;
    private String passWord;
    private String question;
    private String answer;
    private Integer call;
    public Integer getId(){
        return id;
    }
    public void SetId(Integer id){
        this.id=id;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getCall() {
        return call;
    }

    public void setCall(Integer call) {
        this.call = call;
    }
    public User(){

    }
    public User(Integer id){
        this.id=id;
    }
    public User(String userName, String passWord, String question, String answer, Integer call) {
        this.userName = userName;
        this.passWord = passWord;
        this.question = question;
        this.answer = answer;
        this.call = call;
    }
    public User(Integer id,String userName, String passWord, String question, String answer, Integer call) {
        this.id=id;
        this.userName = userName;
        this.passWord = passWord;
        this.question = question;
        this.answer = answer;
        this.call = call;
    }
    public String toString(){
        return  "{"+
                "id:"+id+
                ",昵称:"+userName+
                ",密码:"+ passWord +
                ",密保问题:"+question+
                ",密保答案:"+answer+
                ",密保手机号:"+call+
                "}\n";
    }
}
